﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using PropertyChanged;

namespace CardGenerator.ViewModel
{
    [AddINotifyPropertyChangedInterface]
    public class NavigationMenu
    {
        public Int32 Index { get; set; }
        public String Title { get; set; }
        public String SubTitle { get; set; }
        public String Icon { get; set; }
        public FrameworkElement PageContent { get; set; }
    }

    public class NavigationMenuTitleConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return (value as NavigationMenu)?.Title ?? value?.ToString();
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
